package com.lelouch.order.controller;

import com.lelouch.order.config.GirlConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 测试
 *
 * @author lcy
 * @create 2018-08-28 10:39
 */
@Controller
@RequestMapping("/girl")
public class GirlController {

    @Autowired
    private GirlConfig girlConfig;


    @RequestMapping("/print")
    @ResponseBody
    public String print(){
        return girlConfig.getName()+girlConfig.getAge();
    }
}
